package com.guoning.office_system.mapper;

import com.guoning.office_system.model.Equipment;
import com.guoning.office_system.model.EquipmentWithMeetingRoom;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("EquipmentMapper")
public interface EquipmentMapper {
    Long selectByEquipmentCodeCount(String equipmentCode);

    Long selectByConditionCount(Criteria criteria);

    List<EquipmentWithMeetingRoom> selectByCondition(Criteria criteria);

    int updateEquipmentStatus(List list);

    int updateForDelete(List list);

    int deleteByPrimaryKey(Long id);

    int insert(Equipment record);

    int insertSelective(Equipment record);

    Equipment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Equipment record);

    int updateByPrimaryKey(Equipment record);
}